package service.local;

import java.util.List;

import javax.ejb.Local;

import model.Role;
import model.User;
import service.ServiceException;
@Local
public interface UserService {
	User getUser(Long id);

	User insertUser(User user);

	User updateUser(User user);

	void deleteUser(User user);
	
	List<User> getAllUsers();
	
	boolean tryLogin(String username,String pass);
	
	User getUserByUsername(String username);
	
	List<Role> getRolesForUser(Long id);
	
	List<User> getAllActiveUsers();
}
